package main

import "fmt"

type triangle struct {
	size int
}

func (t triangle) perimeter() int {
	return t.size * 3
}

func main() {
	t := triangle{3}
	fmt.Println(t.perimeter())
}
